/*
 * @Description: 产品管理
 * @Author: Wang ZhongWang
 * @Date: 2022-02-20 10:11:35
 * @LastEditTime: 2022-02-20 10:49:55
 * @LastEditors: Wang ZhongWang
 */

import request from '@/utils/request'

export function stateStatistic(query) {
  return request({
    url: '/winglinks/link/product/stateStatistic',
    method: 'get',
    params: query
  })
}

export function getListPage(query) {
  return request({
    url: '/winglinks/link/product/list',
    method: 'get',
    params: query
  })
}

export function deleteById(id) {
  return request({
    url: '/winglinks/link/product/' + id,
    method: 'delete'
  })
}

export function getAllProduct(query) {
  return request({
    url: '/winglinks/link/product/selectAll',
    method: 'get',
    params: query
  })
}

export function getProductById(id) {
  return request({
    url: '/winglinks/link/product/' + id,
    method: 'get'
  })
}

export function updateProduct(query) {
  return request({
    url: '/winglinks/link/product',
    method: 'put',
    data: query
  })
}

export function getProductByProductIdentification(query){
  return request({
    url: '/winglinks/link/product/selectIotProductByProductIdentification',
    method: 'get',
    params: query
  })
}
